package com.enjoyor.health.HGPT.core.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 小程序后端access_token
 * </p>
 *
 * @author enjoyor
 * @since 2023-10-18
 */
@TableName("user_info_miniapp_access_token")
@ApiModel(value = "UserInfoMiniappAccessToken对象", description = "小程序后端access_token")
public class UserInfoMiniappAccessToken implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty("小程序用户id")
    private String openId;

    @ApiModelProperty("向微信后端请求数据的凭证")
    private String accessToken;

    @ApiModelProperty("生效时间")
    private LocalDateTime effectiveTime;

    @ApiModelProperty("有效时长")
    private Integer effectiveDuration;

    @ApiModelProperty("入库时间")
    private LocalDateTime storageTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public LocalDateTime getEffectiveTime() {
        return effectiveTime;
    }

    public void setEffectiveTime(LocalDateTime effectiveTime) {
        this.effectiveTime = effectiveTime;
    }

    public Integer getEffectiveDuration() {
        return effectiveDuration;
    }

    public void setEffectiveDuration(Integer effectiveDuration) {
        this.effectiveDuration = effectiveDuration;
    }

    public LocalDateTime getStorageTime() {
        return storageTime;
    }

    public void setStorageTime(LocalDateTime storageTime) {
        this.storageTime = storageTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "UserInfoMiniappAccessToken{" +
            "id = " + id +
            ", openId = " + openId +
            ", accessToken = " + accessToken +
            ", effectiveTime = " + effectiveTime +
            ", effectiveDuration = " + effectiveDuration +
            ", storageTime = " + storageTime +
            ", updateTime = " + updateTime +
        "}";
    }
}
